package com.yike.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 平台设备信息
 *
 * @author Sakura
 * @since 2024-11-17
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "平台设备基础信息")
public class PlatformBaseMachineVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("平台设备ID")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @NotBlank(message = "设备号不能为空")
    @ApiModelProperty("设备号")
    private String macNo;

    @ApiModelProperty("序列号")
    private String macSn;

    @ApiModelProperty("型号")
    private String model;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("绑定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bindTime;

    @ApiModelProperty("状态：1启用 2禁用")
    private Integer status;

    @ApiModelProperty("在线状态：1在线 2离线")
    private Integer lineStatus;

}
